<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page isELIgnored="false" %>
<%--
  ~     login.jsp  Copyright (c) 2021. cc01cc. All rights reserved.
  ~
  ~     This file is part of e-commerce.
  ~
  ~     e-commerce is free software: you can redistribute it and/or modify
  ~     it under the terms of the GNU Affero General Public License as published
  ~     by the Free Software Foundation, either version 3 of the License, or
  ~     (at your option) any later version.
  ~
  ~     e-commerce is distributed in the hope that it will be useful,
  ~     but WITHOUT ANY WARRANTY; without even the implied warranty of
  ~     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  ~     GNU Affero General Public License for more details.
  ~
  ~     You should have received a copy of the GNU Affero General Public License
  ~     along with this program.  If not, see <http://www.gnu.org/licenses/>.
  --%>

<html>
    <head>
        <title>注册/登录</title>
    </head>
    <body>
    <h1>这是注册登录页面</h1>
    <main>
        <h2>登录</h2>
<%--        表单提交给LoginServlet--%>
        <form action = "/e_web_war/loginCheck" method="POST">
            <label for="name">
                <span>账户：</span>
                <input type="text" name="name" id="name">
            </label>
            <label for="pwd">
                <span>密码：</span>
                <input type="password" name="pwd" id="pwd">
            </label>
            <div>
                <span>账户类型</span>
                <label>
                    <input type="radio" value="user" name="accountType" id="accountType-user" checked>
                    <span>用户</span>
                </label>
                <label>
                    <input type="radio" value="manager" name="accountType" id="accountType-manager">
                    <span>管理员</span>
                </label>

            </div>
            <button type="submit">登录</button>
        </form>
        ${error}
    </main>
    </body>
</html>
